package com.xyy.saas.payment.service;

import com.xyy.saas.payment.dao.model.BankPayRecord;

/**
 * @Author lina
 * @Description 银行卡支付记录mapper
 * @Date 2022/3/9
 **/
public interface BankPayRecordService {
    /**
     * 根据中台支付流水号查询记录
     * @param payNo
     * @return
     */
    BankPayRecord queryByPayNo(String payNo);

    /**
     * 根据业务号查询记录
     * @param businessNo
     * @return
     */
    BankPayRecord queryByBusinessNo(String businessNo);

    /**
     * 保存记录
     * @param bankPayRecord
     * @return
     */
    int save(BankPayRecord bankPayRecord);

    /**
     * 更新记录
     * @param bankPayRecord
     * @return
     */
    int updateByPayNo(BankPayRecord bankPayRecord);
}
